package com.demo.account;

import org.junit.Test;

public class AccountDemo {

    @Test
    public void demo01(){
        Account account = new Account("act-1", 10000);
        AccountThread t1 = new AccountThread(account);
        AccountThread t2 = new AccountThread(account);
        t1.start();
        t2.start();

        try {
            t1.join();
            t2.join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
